package com.lesent.kafka.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shengtao
 * @Description:
 * @date 2018/12/19 16:21
 */
public class Student implements Serializable {

    private static final long serialVersionUID = -3132276747860831300L;

    private String name;

    private int age;

    private String hoby;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date birthDay;

    public Student() {
    }

    public Student(String name, int age, String hoby) {
        this.name = name;
        this.age = age;
        this.hoby = hoby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getHoby() {
        return hoby;
    }

    public void setHoby(String hoby) {
        this.hoby = hoby;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", hoby='" + hoby + '\'' +
                '}';
    }
}